.class public Les/fa;
.super Ljava/lang/Object;
.source "AdjustFPS.java"


# instance fields
.field private a:I

.field private b:J

.field private c:J


# direct methods
.method public constructor <init>(I)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Les/fa;->b:J

    const-wide/16 v0, -0x1

    .line 3
    iput-wide v0, p0, Les/fa;->c:J

    .line 4
    iput p1, p0, Les/fa;->a:I

    return-void
.end method

.method private a(JJ)I
    .locals 5

    .line 3
    iget-wide v0, p0, Les/fa;->c:J

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    cmp-long v2, p3, v0

    if-lez v2, :cond_0

    const-wide/32 v2, 0xf4240

    mul-long p1, p1, v2

    sub-long/2addr p3, v0

    .line 4
    div-long/2addr p1, p3

    long-to-int p2, p1

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    :goto_0
    return p2
.end method


# virtual methods
.method public a(J)Z
    .locals 4

    .line 1
    iget-wide v0, p0, Les/fa;->b:J

    const-wide/16 v2, 0x1

    add-long/2addr v0, v2

    invoke-direct {p0, v0, v1, p1, p2}, Les/fa;->a(JJ)I

    move-result p1

    .line 2
    iget p2, p0, Les/fa;->a:I

    if-le p1, p2, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public b(J)V
    .locals 5

    .line 1
    iget-wide v0, p0, Les/fa;->c:J

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    .line 2
    iput-wide p1, p0, Les/fa;->c:J

    .line 3
    :cond_0
    iget-wide p1, p0, Les/fa;->b:J

    const-wide/16 v0, 0x1

    add-long/2addr p1, v0

    iput-wide p1, p0, Les/fa;->b:J

    return-void
.end method
